package com.group.mall.service;


import com.group.mall.domain.POJO.GoodsPro;
import com.group.mall.domain.POJO.ShoppingCart;
import com.group.mall.domain.VO.ShoppingCartVO;

import java.util.List;

public interface ShoppingCartService {

    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> showShoppingCart(Integer id);
    /**
     * 根据id删除商品
     * @param id
     */
    void deleteById(Long id);

    List<GoodsPro> showGoodsPro(Integer goodsId);

    void add(Long id);

    void sub(Long id);
    /*
    update
     */
    void updatecart(ShoppingCartVO shoppingCartVO);
}